package com.longxi.tianjintianbao.ui.activity.visitor;

import android.content.Intent;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.visitor.VisitorDetailAtPresenter;
import com.longxi.tianjintianbao.ui.view.visitor.IVisitorDetailAtView;

import butterknife.BindView;

public class VisitorDetailActivity extends BaseActivity<IVisitorDetailAtView, VisitorDetailAtPresenter> implements IVisitorDetailAtView {
    @BindView(R.id.tvContent)
    TextView mTvContent;
    @BindView(R.id.btnLogin)
    Button mBtnLogin;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_sign_visitor_detail;
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
    }

    @Override
    public void initListener() {
        super.initListener();
        mBtnLogin.setOnClickListener(v -> mPresenter.btnLogin());
    }

    @Override
    protected VisitorDetailAtPresenter createPresenter() {
        return new VisitorDetailAtPresenter(this);
    }

    @Override
    public TextView getTvContent() {
        return mTvContent;
    }

    @Override
    public Button getBtnLogin() {
        return mBtnLogin;
    }

}


